from flask import Flask, render_template, jsonify
from analyse.analyse import *
from flask_cors import CORS
app = Flask(__name__)
CORS(app,resources=r'/*')


@app.route('/')
def index():
    return render_template('index.html')


@app.route('/line')
def line():
    return jsonify(line_data())


@app.route('/geo')
def geo():
    return jsonify(geo_data())


@app.route('/pie')
def pie():
    return jsonify(pie_data())


@app.route('/radar')
def radar():
    return jsonify(radar_data())


@app.route('/bar')
def bar():
    return jsonify(bar_data())


if __name__ == '__main__':
    app.run()
